home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / lnxd3-79.zip / DIGEST3.790 next >
Internet Message Format  |  1993-01-01  |  25KB

  1. From Linux-Activists-Request@news-digests.mit.edu Mon Dec 14 11:54:18 1992
  2. Return-Path: <Linux-Activists-Request@news-digests.mit.edu>
  3. Received: from bloom-picayune (BLOOM-PICAYUNE.MIT.EDU) by montefiore.ulg.ac.be (4.1/SMI-4.1)
  4.     id AA00732; Mon, 14 Dec 92 11:47:21 +0100
  5. Received:  by bloom-picayune (5.57/25-eef)
  6.     id AA09701; Mon, 14 Dec 92 02:30:37 -0500
  7. Message-Id: <9212140730.AA09701@bloom-picayune>
  8. From: Digestifier <Linux-Activists-Request@news-digests.mit.edu>
  9. To: Linux-Activists@news-digests.mit.edu
  10. Reply-To: Linux-Activists@news-digests.mit.edu
  11. Date:     Mon, 14 Dec 92 02:30:16 EST
  12. Subject:  Linux-Activists Digest #790
  13. Status: R
  14.  
  15. Linux-Activists Digest #790, Volume #3           Mon, 14 Dec 92 02:30:16 EST
  16.  
  17. Contents:
  18.   Re: xdm and gwm (Gero Kuhlmann)
  19.   why in the world is doc so damm slow? (Supernaw-Issen, Daniel A.)
  20.   [BUG REPORT] swapping trouble with 0.98-pl6 ?!? (Chris Newbold)
  21.   rz / sz cute version? (Ammo Goettsch)
  22.   Re: PCNFSD for Linux (Ari Lemmke)
  23.   TCP and TIOC questions (Phillip Rzewski)
  24.   UFC-Crypt (Peter Villadsen)
  25.   Re: [Q] How to change from Linux/minix file system to extfs ? [CONFIGS] (Joshua M Yelon)
  26.   roaches and eyes (derrick D.goss)
  27.   Problems with LILO 0.7 and Linux 0.99 (David W. Summers)
  28.   Re: Can X run with only 4 megs RAM? (Spaggie)
  29.   Re: [ANNOUNCE] linux version 0.99 is out (Chris Newbold)
  30.   Re: Not quite bug in math stuff (apm233m@vaxc.cc.monash.edu.au)
  31.   Upgrade to PL6 process? (Tim Foley)
  32.   Making a Terminal Server? (Tim Foley)
  33.  
  34. ----------------------------------------------------------------------------
  35.  
  36. From: gero@gkminix.han.de (Gero Kuhlmann)
  37. Subject: Re: xdm and gwm
  38. Date: Sun, 13 Dec 92 17:25:27 GMT
  39.  
  40. linville@garfield.catt.ncsu.edu (John W. Linville) writes:
  41. > 1)  When using xdm, is there anything special that I need to do to allow xdm
  42. >     to log-in users?  I have removed the tty's from inittab and I put xdm at
  43. >     the end of my /etc/rc file.  The login screen comes-up fine.  The problem
  44. >     is that anytime I try to login, the login/password box disappears, only
  45. >     to reappear without ever starting a user session.  I have made ssessreg
  46. >     a setuid program.  Does anyone know how to make this work.  I am using
  47. >     the latest SLS.
  48.  
  49. I had the same problem. It is that rc is started by init with /dev/tty1 setup
  50. as stdin/stdout. But xdm returns immediately after starting because it is a
  51. daemon putting itself into the background. That means that the rc script
  52. returns almost immediately after calling xdm and init closes /dev/tty1. So
  53. when xdm starts xterm that doesn't find a valid console (just do it and look
  54. at the 'ps -ax' output: you will see that there is no console attached to
  55. xdm and therefore couldn't be attached to xterm either). And it's not xdm
  56. which fails but xterm which couldn't find a console. And because xterm is
  57. called as the last process in Xsession, it returns an error to xdm which then
  58. shows up the login window again.
  59. But from where to start xdm then? When doing it from a normal login, xdm
  60. tries to access the console the same way as the underlaying bash is doing.
  61. That makes it almost impossible to enter anything at the login window. But
  62. removing the tty from inittab isn't a solution either because then there is
  63. no way to start xdm. To solve this problem I wrote an alias of the following
  64. form:
  65.         alias xdm='xdm; exec </dev/tty8; exec >/dev/tty8'
  66.  
  67. Now when starting xdm, it returns immediately and the shell attaches the
  68. stdin and stdout to /dev/tty8 which is normally not used in the inittab.
  69. So xdm is attached to the current controlling console and the shell is
  70. redirected to /dev/tty8. That also means that if xdm closes the server
  71. due to some error, you will find your previous vc with <ALT+F8>!
  72.  
  73. gero.
  74.  
  75. -- 
  76. Gero Kuhlmann                   Zerberus:  G.KUHLMANN@A-LINK-H.ZER
  77. Donarweg 4                      SubNet:    gero@gkminix.sub.org
  78. D-3000 Hannover 51              IN:        gero@gkminix.han.de
  79.  
  80. ------------------------------
  81.  
  82. From: st1mb@jane.uh.edu (Supernaw-Issen, Daniel A.)
  83. Subject: why in the world is doc so damm slow?
  84. Date: 13 Dec 1992 23:16 CST
  85.  
  86. Got a question,
  87. I have the SLS .98pl5 distribution with the X stuff and tried my hand at doc.
  88. I found that it was so slow as to be completely useless.  Why?  I have 8M ram
  89. and 16M swap.  I've run it with *NOTHING* else going, and it still is too slow
  90. as to be useless.  any ideas?  does this beastie require a math-co?  I have a
  91. 386-33.
  92.  
  93. Daniel
  94.  
  95. signature for hire. 
  96.  
  97. ------------------------------
  98.  
  99. From: ctne_ltd@uhura.cc.rochester.edu (Chris Newbold)
  100. Subject: [BUG REPORT] swapping trouble with 0.98-pl6 ?!?
  101. Date: 14 Dec 92 05:39:57 GMT
  102.  
  103. I have been having trouble with 0.98-pl5 and 0.98-pl6 when
  104. running under X. The machine will suddenly lock when I try
  105. and run commands in an xterm window. This happens 1-4
  106. times an hour.
  107.  
  108. I can reproduce the problem almost consistently by trying
  109. to copies of ghostview simultainously. Other commands that
  110. frequently cause the system to hang are: tar, groff and
  111. make/gcc.
  112.  
  113. At first I thought that this might be a problem with the
  114. X386-S3 server. However, some experimentation proved this
  115. theory invalid. I have this trouble under pl5 or pl6, with
  116. X386-S3 version 0.2b or 0.3 or the X386mono server.
  117.  
  118. I stress-tested the system outside of X to see if I could
  119. reproduce the problem, but had no luck. Though I pushed the
  120. load average over 3 with extreme disk activity, nothing
  121. broke. However, I was unable to use up much of the swap
  122. space--which is what I think kills everything.
  123.  
  124. Is anybody else having troubles like this? This is perhaps
  125. the worst bug I have disovered since the old SCSI code
  126. would trash my disk daily...
  127.  
  128. My system:
  129.  
  130. 486/33DX, EISA bus
  131. 8MB ram
  132. AHA1542 SCSI disks
  133.  
  134. 8MB swap parition
  135.  
  136. -Chris
  137.  
  138. -- 
  139. >>>> Chris Newbold <<<< * "If you fool around with a thing for very long you *
  140. University of Rochester *                 will screw it up."                 *
  141. Disclaimer: "All warranties expire upon payment of invoice."                
  142. ctne_ltd@uhura.cc.rochester.edu * uhura.cc.rochester.edu!ctne_ltd@uunet
  143.  
  144. ------------------------------
  145.  
  146. From: ammo@cc.gatech.edu (Ammo Goettsch)
  147. Subject: rz / sz cute version?
  148. Reply-To: ammo@cc.gatech.edu (Ammo Goettsch)
  149. Date: Mon, 14 Dec 1992 06:07:46 GMT
  150.  
  151. does anyone have a "cute" version of rz, that for example uses curses or
  152. X to display decent download status messages, rather than the standard
  153. one-line-per-packet messages?
  154.  
  155. Ammo Goettsch
  156.  
  157. ------------------------------
  158.  
  159. From: arl@cs.hut.fi (Ari Lemmke)
  160. Subject: Re: PCNFSD for Linux
  161. Date: Mon, 14 Dec 1992 03:46:59 GMT
  162.  
  163. In article <1992Dec12.060713.19867@samba.oit.unc.edu> jem@sunSITE.unc.edu (Jonathan Magid) writes:
  164. :   In article <702.404.uupcb@hpbs938.boi.hp.com> ed.boston%phant@hpbs938.boi.hp.com (Ed Boston)  writes:
  165. :   >Does anyone know if there is a PCNFSD available for Linux?  I have been
  166. :   >watching some of the discussions of Linux and would like to set it up,
  167. :   >but I would need this ability for my needs.
  168.  
  169.         If someone writes pcnfsd ;-)
  170.  
  171. :   I'll assume PCNFS is some sort of MS-DOS version of NFS...
  172.  
  173.         Yes and more .. pcnfsd handles also printing (aaargh).
  174.  
  175. :   correctly, you need to be able to use a Linux box as a NFS file server?  
  176. :   Well there is a ALPHA-BETA nfsd for linux... It seems to be pretty stable
  177. :   and support for it is included in the SLS distribution.  
  178.  
  179.         No .. I'm not sure if it will work with pcnfs, I doubt.
  180.         Even though I have pcnfs kit (something old 2.x), I haven't
  181.         checked does it have source code also - they say it has
  182.         sources for pcnfsd. Then it would be only porting job,
  183.         I'm not sure if one is allowed to distribute the code ...
  184.         but if someone ports it to Linux, then patches could
  185.         be distributed.
  186.  
  187. :   jem.
  188.  
  189.         arl
  190.  
  191. ------------------------------
  192.  
  193. From: kutcha@eos.acm.rpi.edu (Phillip Rzewski)
  194. Subject: TCP and TIOC questions
  195. Date: Mon, 14 Dec 1992 06:34:35 GMT
  196.  
  197.     I'm starting to do some fun porting, and since I haven't done too much
  198. porting on Linux before (at least, not hard stuff) I have decided that as I run
  199. into problems I'm going to post to c.o.l about them. I figure it's either a bug
  200. or something that people should know about anyway. :)
  201.  
  202.     First of all. My stuff tries to use the TCP business a little. It
  203. complained about the lack of sin_zero in /usr/include/netinet/in.h. The only
  204. other thing that looks like it would fit instead is the __pad thing, but I was
  205. looking at include files on other systems and they all seem to have sin_zero.
  206. So why is Linux trying to be nonstandard here?
  207.  
  208.     Second of all. I see this kind of thing posted about a lot, but I guess we
  209. all have to have our turn at this. My code is looking for things like TIOCGETP
  210. and TIOCSETN. They don't appear to be declared anywhere, though linux/termios.h
  211. certainly has a lot of defines with names that come pretty close. Are there
  212. some equivalents from that file which I should be using in place of the
  213. TIOCGETP and TIOCSETN? One thing that made me suspicious about whether or not
  214. this "right" was the fact that curses.h makes a reference to TIOCGETP, which is
  215. certainly out of place on a system that doesn't define that in any other
  216. include file.
  217.  
  218.     Anyone wanna field these?
  219.  
  220. --
  221.   Phillip Andrew Rzewski                      Internet: kutcha@acm.rpi.edu
  222.              "Don't wait; while you're waiting, you're dying."
  223.                           --- Peter Hammill
  224.  
  225. ------------------------------
  226.  
  227. From: prv2d@fulton.seas.Virginia.EDU (Peter Villadsen)
  228. Subject: UFC-Crypt
  229. Date: Mon, 14 Dec 1992 05:43:09 GMT
  230.  
  231.    I recently ran the small test suite included with the ufc-crypt
  232. package and found that it ran slower than the native crypt. For
  233. my 386/25 (no math coprocessor), this was:
  234.    crypt:  312.7 crypts/sec
  235. ufccrypt:  281.9 crypt/sec
  236.  
  237.    I am wondering why this is the case? Under the Sun and RS6000,
  238. the UFC-crypt ran much faster. I'm using 0.98pl4, gcc2.2.2d on a
  239. 386/25 with no math coprocessor. Thanks,
  240.  
  241.  
  242.    Peter
  243.  
  244.  
  245. ------------------------------
  246.  
  247. From: jy10033@ehsn11.cen.uiuc.edu (Joshua M Yelon)
  248. Subject: Re: [Q] How to change from Linux/minix file system to extfs ? [CONFIGS]
  249. Date: Mon, 14 Dec 1992 06:44:37 GMT
  250.  
  251. >> I have linux 0.98pl4, Xfree v1.1, gcc 2.2.2.7d installed on what is the
  252. >> Linux/Minix file system. I have 
  253. >>
  254. >>  /dev/hda2  42 Mb Linux/Minix partition
  255. >>  /dev/hda3   7 Mb Linux Swap disk
  256. >>
  257. >> [Q] How do I upgrade the complete system to the Linux extfs ?
  258.  
  259. To be honest, I don't think this is a good idea just yet.  It _would_
  260. get you long filenames.  It would also reduce your performance - the
  261. extfs is fairly slow.  I switched over to extfs, and then was sorry
  262. I did - I switched back.  There is a new, faster extfs in the works,
  263. and if I were you, I'd wait for that.
  264.  
  265. But, if you must switch, here's the trick I used:  Put a tarred, zipped
  266. copy of your hard disk on the swap partition!  Zip is usually capable
  267. of reducing by a factor of three, so there _is_ a chance, if your hard
  268. disk isn't full.
  269.  
  270. Incidentally, this will take up a lot of disk space unless you pipe
  271. the tarfile directly into zip, which is possible.  Indeed, you can pipe
  272. the resulting zipfile directly into wc, to see whether the zipfile will
  273. fit on the swap partition, before you do anything serious at all.
  274.  
  275. Of course, don't forget to put 'unzip' on your install disks!
  276.  
  277. - Josh
  278.  
  279. ------------------------------
  280.  
  281. Subject: roaches and eyes
  282. From: dmann@mookie.maintech.com (derrick D.goss)
  283. Date: Sun, 13 Dec 92 11:58:03 PST
  284.  
  285. after upgrading to patch level 3 my Xeyes and Xroaches stopped working.
  286. does anyone know the fix????
  287.  
  288. post replys oe e-mail
  289. email to goss@maintech.com
  290.  
  291. ------------------------------
  292.  
  293. From: dws@cseg03.uark.edu (David W. Summers)
  294. Subject: Problems with LILO 0.7 and Linux 0.99
  295. Date: Mon, 14 Dec 1992 06:25:24 GMT
  296.  
  297. Hello fellow Linuxers (Linuxians? :-), I hope this isn't too long....
  298.  
  299.    Well, I just saw that 0.99 made it out so I decided to try to upgrade
  300. from 0.98.5 to 0.98.6 and then to 0.99.
  301.  
  302. Here's the setup:
  303.    HARDWARE:
  304.    ---------
  305.    486-50 AMI BIOS
  306.    EISA Motherboard
  307.    8 Meg Ram
  308.    520 Meg Fujitsu 2426F (SCSI)
  309.    AHA 1542B Controller
  310.  
  311.    Software:
  312.    ---------
  313.    Linux 0.98.6 and/or Linux 0.99
  314.    LILO 0.7
  315.  
  316.    /usr/src/linux/.config:
  317. ========== BEGIN =============
  318. #
  319. # Automatically generated make config: don't edit
  320. #
  321.  
  322. #
  323. # General setup
  324. #
  325. CONFIG_BLK_DEV_HD = CONFIG_BLK_DEV_HD
  326. CONFIG_TCPIP = CONFIG_TCPIP
  327. CONFIG_MAX_16M = CONFIG_MAX_16M
  328.  
  329. #
  330. # SCSI support
  331. #
  332. CONFIG_SCSI = CONFIG_SCSI
  333.  
  334. #
  335. # SCSI support type (disk, tape, CDrom)
  336. #
  337. CONFIG_BLK_DEV_SD = CONFIG_BLK_DEV_SD
  338. CONFIG_BLK_DEV_ST = CONFIG_BLK_DEV_ST
  339. CONFIG_BLK_DEV_SR = CONFIG_BLK_DEV_SR
  340.  
  341. #
  342. # SCSI low-level drivers
  343. #
  344. CONFIG_SCSI_AHA1542 = CONFIG_SCSI_AHA1542
  345.  
  346. #
  347. # Filesystems
  348. #
  349. CONFIG_MINIX_FS = CONFIG_MINIX_FS
  350. CONFIG_EXT_FS = CONFIG_EXT_FS
  351. CONFIG_MSDOS_FS = CONFIG_MSDOS_FS
  352. CONFIG_PROC_FS = CONFIG_PROC_FS
  353. CONFIG_NFS_FS = CONFIG_NFS_FS
  354. CONFIG_ISO9660_FS = CONFIG_ISO9660_FS
  355.  
  356. #
  357. # Various character device drivers..
  358. #
  359. ======== END =========================
  360.  
  361.    Disk partitions:
  362. ========= BEGIN =============
  363. # /etc/lilo/disktab  -  LILO disk parameter table
  364. #
  365. # This table contains disk parameters for SCSI disks and non-
  366. # standard parameters of IDE disks. Parameters in disktab
  367. # _always_ override auto-detected disk parameters.
  368.  
  369. # Dev.  BIOS    Secs/   Heads/  Cylin-  Part.
  370. # num.  code    track   cylin.  ders    offset
  371.  
  372. 0x800   0x80    32      64      495     0       # /dev/sda
  373. 0x801   0x80    32      64      495     2048    # /dev/sda1 (OS/2 Boot Manager)
  374. 0x802   0x80    32      64      495     32      # /dev/sda2 (DOS-OS/2)
  375. 0x803   0x80    32      64      495     239616  # /dev/sda3 (Extended Partition)
  376. 0x804   0x80    32      64      495     206848  # /dev/sda4 (Linux root (EXTFS))
  377. 0x805   0x80    32      64      495     239648  # /dev/sda5 (Logical PARTITION)
  378. 0x806   0x80    32      64      495     272416  # /dev/sda6 (Logical PARTITION)
  379. 0x807   0x80    32      64      495     337952  # /dev/sda7 (Logical PARTITION)
  380. ============= END ===================
  381.  
  382. Here's the saga:
  383.    1.) I was using LILO 0.4 with Linux 0.98.5 and everything was groovy.
  384.  
  385.    2.) I tried to upgrade to LILO 0.7 but it stops at the "LIL".  I (re)-read
  386.        the documentation and it says that it is probably caused by a mis-matched
  387.        /etc/lilo/disktab file but I haven't changed my disk partitioning!
  388.  
  389.    3.) I tried to boot 0.99 Image from floppy and the kernel panics with:
  390.  
  391. [previous boot stuff deleted, unless you think it is important....]
  392. Partition table ok.
  393. MINIX-fs magic match failed.
  394. general protection: 0000
  395. EIP: 0008:0000B6C4
  396. EFLAGS: 00010202
  397. fs: 0017
  398. base: C00000000, Limit: 000A0000
  399. Pid: 1, process nr: 1
  400. 86 13 85 d2 74 27 83 3a 02 74
  401.  
  402. :-(  Well, I tried looking in System.map on 0.99 and narrow it down and
  403. I *THINK* I've narrowed it down to the 'wake_up' routine.  
  404.  
  405. Could someone tell me how to narrow it down further?  Do I need to spend some
  406. time putting 'printk' calls in 'wake_up' to try to figure out what is going on?
  407.  
  408.  
  409. GOOD NEWS:  The 0.98.6 SCSI code really flies!  I'm impressed! 
  410. Also the TCP/IP code is fabulous!
  411.  
  412.  
  413. Has anyone else expirienced this problem?  Am I doing something stupid or
  414. silly?
  415.  
  416. I have read and re-read the LILO docs several times but can't figure out
  417. what I'm doing wrong...it starts to boot.
  418.  
  419.  
  420. Thanks!
  421.    - David Summers
  422.    (dws@engr.uark.edu)
  423. -- 
  424.                          "Never under-estimate the bandwidth of a station-wagon
  425. David Summers             full of tapes, hurtling down the highway."
  426. dws@engr.uark.edu         - Tanenbaum, "Computer Networks"
  427.  
  428. ------------------------------
  429.  
  430. From: jbs@en.ecn.purdue.edu (Spaggie)
  431. Subject: Re: Can X run with only 4 megs RAM?
  432. Date: Mon, 14 Dec 92 06:47:35 GMT
  433.  
  434. In article <1gh4ikINN1bn@menudo.uh.edu> wjin@cs.uh.edu (W. Woody Jin) writes:
  435. >I have been using (Xwindow + Xview3) with 0.98.2, 98.3, 98.4, 98.5
  436. >and now 98.6, without any problem  with only 4M bytes without math processor.
  437. >I use X stuff from SLS distribution.
  438. >When I start X, I open 3 xterms, oclock, xeyes with olwm.
  439. >I found that Linux uses about 2M for swap in this case.
  440. >Xdvi, ghostview/script work just fine.
  441. >Only problem is that compiling is so slow and you need some patience when 
  442. >moving to other window (5 sec or slightly more). 
  443. >In this case, I found that Linux uses 8M for swap (twice more than my memory).
  444.  
  445.         Strange. I have observed a problem with running X under 98.4, and 98.5,
  446. similiar to the ones describe by the original poster.  When I changed back to
  447. 98.0, things worked again.   Seems the X server just hangs.  My system sounds 
  448. similair to yours, except I have a math co-proc. (386-40,AMD BIOS,ETEQ chipset,
  449. 4MB mem, 10MB swap, Cyrix 387-40).  Has anyone else had trouble with X under
  450. 98.x where x>1?  (by the way, it is unrelated to the video card, as I tried
  451. 3 different cards, each with the same results.
  452.  
  453. Any ideas?
  454.  
  455. Jeff
  456.  
  457. =================================================================
  458. Jeff Sponaugle                      Purdue University
  459. 246 S. Salisbury #3                 Engineering Computer Network
  460. West Lafayette, IN 47906            MSEE 104
  461. (317) 743-7355                      (317) 494-3106 
  462. Internet: jbs@ecn.purdue.edu        MSEE SB50:494-6106 
  463. =================================================================
  464.  
  465.  
  466.  
  467. ------------------------------
  468.  
  469. From: ctne_ltd@uhura.cc.rochester.edu (Chris Newbold)
  470. Subject: Re: [ANNOUNCE] linux version 0.99 is out
  471. Date: 14 Dec 92 06:55:52 GMT
  472.  
  473.  
  474. > In <1992Dec13.193812.6958@tc.cornell.edu> torvalds@cc.helsinki.fi (Linus Torvalds) writes:
  475. > >Linux version 0.99 is now available at nic.funet.fi, in the directory
  476. > >pub/OS/Linux/PEOPLE/Linus as both full source and patches against
  477. > >0.98.6.  It will probably show up on the other major sites soon. 
  478. > I download the full source from nic.funet.fi, and ran configure as follows:
  479. > no kernel math
  480. > no profiling
  481. > no std. harddisk
  482. > yes tcp/ip
  483. > yes SCSI (disk, tape & cdrom)
  484. > aha1542 driver
  485. > yes minix, ext, msdos & iso9660
  486. > no proc
  487. > yes serial autoconfig
  488. > no funny serial hardware
  489. > ...and then did a make dep, make Image. It compiled w/o incident.
  490. > When I booted the kernel (off a floppy, not LILO) all went well until just
  491. > after the disk partition information was read. After getting "partition
  492. > tables ok" the kernel dies with a NULL reference.
  493. > the EIP is 8:b754, which according to the map file is inside wake_up in 
  494. > sched.c.
  495. > My hardware:
  496. > 486/33 DX, EISA bus
  497. > 8MB RAM
  498. > AHA1542-compatible SCSI host (2 disks, 1 tape, 1 cdrom attached)
  499. > I had no trouble with 0.98-pl6. Any ideas what's gone wrong?
  500. > -Chris
  501.  
  502.  
  503. -- 
  504. >>>> Chris Newbold <<<< * "If you fool around with a thing for very long you *
  505. University of Rochester *                 will screw it up."                 *
  506. Disclaimer: "All warranties expire upon payment of invoice."                
  507. ctne_ltd@uhura.cc.rochester.edu * uhura.cc.rochester.edu!ctne_ltd@uunet
  508.  
  509. ------------------------------
  510.  
  511. From: apm233m@vaxc.cc.monash.edu.au
  512. Subject: Re: Not quite bug in math stuff
  513. Date: Mon, 14 Dec 1992 06:31:57 GMT
  514.  
  515. In article <1992Dec13.032953.4975@tc.cornell.edu>, kutcha@eos.acm.rpi.edu (Phillip Rzewski) writes:
  516. >     I don't do much stuff with math under Linux, so I never ran into this
  517. > before. I'm sure someone else has come across this, it's probably quite
  518. > documented somewhere. But it took me rather by surprise.
  519. >     Consider the program:
  520. > #include <stdio.h>
  521. > #include <math.h>
  522. > int main(void)
  523. > {
  524. >   double d;
  525. >   long l;
  526. >   d = pow(2.0, 1.0);
  527. >   printf("%1.32f\n", d);
  528. >   l = (long) d;
  529. >   printf("%d\n", l);
  530. >   return 0;
  531. > }
  532. >     And of course the output:
  533. > 1.99999999999999977795539507496869
  534. > 1
  535. >     Now, I understand how keen it is that math software speeds things up
  536. > by using logarithms, giving us results like this. However, I know that there
  537. > are systems out there where one doesn't notice it quite so much. The
  538. > program I was originally working with on Linux (not like the one above :) )
  539. > was originally something I wrote under VAX C on a VMS system, and I got
  540. > just what I thought in the long (in other words, 2).
  541. >     Of course, I was able to fix this by simply adding 0.5 to the double
  542. > and then casting it to long. It just seems kinda icky to have to do it that
  543. > way. I mean, this means that every person who tries to do something like I
  544. > did above (which I would think is quite a few) would have to have this same
  545. > weird thing happen to them and learn how to correct it.
  546. >     I'm not one to make demands or anything, but the math people might
  547. > consider fixing this?
  548.  
  549. What version of the kernel and libraries are you using?
  550. Using the FPU emulator with 0.98.6 (I don't have a co-processor), I get
  551. 2.00000000000000000000000 [etc]
  552. with your program.
  553.  
  554. Perhaps you are using the obsolete 'soft' math libs.
  555.  
  556. Your question does raise a valid point though. It would certainly be
  557. nice if the most accurate answer were always given for floating point
  558. problems. Alas, this is simply not possible. The use of finite precision
  559. arithmetic should always be accompanied by an appropriate degree of care.
  560. Linux is often not bad for simple problems because it runs the co-processor
  561. at ~64 bit precision (doubles are ~53 bit precision under Linux gcc).
  562.  
  563. However, even simple programs can give results which are worse than you
  564. might expect. Consider the following little program:
  565.  
  566. #include <stdio.h>
  567. void main(void)
  568. { double d;
  569.   d = 1.0; d = d/3.0;
  570.   printf("%g\n", 1.0-d*3.0); }
  571.  
  572. This will give a non-zero result (compile with no optimizations).
  573.  
  574. But if you try:
  575.  
  576. #include <stdio.h>
  577. void main(void)
  578. { double d, e;
  579.   d = 1.0; e = 3.0;
  580.   printf("%g\n", 1.0-d/3.0*e); }
  581.  
  582. Then because the intermediate result 0.333333... is kept on the co-
  583. processor stack in this case, a different result is obtained (it
  584. happens to be zero).
  585.  
  586. -- 
  587. ===============
  588. Bill Metzenthen
  589. Mathematics Department
  590. Monash University
  591. Australia
  592.  
  593. ------------------------------
  594.  
  595. From: tfoley@camaro (Tim Foley)
  596. Subject: Upgrade to PL6 process?
  597. Date: Sun, 13 Dec 1992 18:43:41 GMT
  598.  
  599.  
  600.   Someone mentioned that UUCP will break with PL6 and than PS broke with 
  601. PL4....whats the story?
  602.  
  603.   I'm still running PL1, and would like to get tcp working, so I'm ready to 
  604. take the PL6 plunge...but what things need patching?
  605.  
  606.                         1) I have the minicom PL6 Patch
  607.                         2) Does uucp need a patch?
  608.                         3) Does ps need a patch?
  609.                         4) Does anything else need....
  610.  
  611. Please reply in the group as quite a few others have been asking the same 
  612. question. 
  613.  
  614.                         
  615.  
  616.  
  617. -- 
  618. ==========================================================================
  619.   The HeartBeat of America...Yesterdays Camaro Z28
  620.   Call the Camaro Linux Pub-access site: 1-416-238-6550 USRobotics HST
  621.   Note: Please, no ftpmail or mailing lists or the host gets annoyed :)
  622.  
  623. ------------------------------
  624.  
  625. From: tfoley@camaro (Tim Foley)
  626. Subject: Making a Terminal Server?
  627. Date: Sun, 13 Dec 1992 18:54:51 GMT
  628.  
  629.  
  630.   I have noticed that people are using other systems for terminal servers 
  631. with other unix systems.  Any idea how I can do this with Linux?
  632.  
  633.   I have a nice huge Motorola SYSVR3 68K machine sitting behind me, with 
  634. about 20 serial ports, but its just sitting there....doing nothing....Linux 
  635. has too many more toys...but only two com ports....
  636.  
  637.   How can I turn this monster into a terminal server for my linux box?  
  638.  
  639. I take it some sort of tcp network with rlogin or something...could someone 
  640. please elaborate? 
  641.  
  642.                                                 TIm
  643.  
  644.  
  645.  
  646.  
  647. -- 
  648. ==========================================================================
  649.   The HeartBeat of America...Yesterdays Camaro Z28
  650.   Call the Camaro Linux Pub-access site: 1-416-238-6550 USRobotics HST
  651.   Note: Please, no ftpmail or mailing lists or the host gets annoyed :)
  652.  
  653. ------------------------------
  654.  
  655.  
  656. ** FOR YOUR REFERENCE **
  657.  
  658. The service address, to which questions about the list itself and requests
  659. to be added to or deleted from it should be directed, is:
  660.  
  661.     Internet: Linux-Activists-Request@NEWS-DIGESTS.MIT.EDU
  662.  
  663. You can send mail to the entire list (and comp.os.linux) via:
  664.  
  665.     Internet: Linux-Activists@NEWS-DIGESTS.MIT.EDU
  666.  
  667. Linux may be obtained via one of these FTP sites:
  668.     nic.funet.fi                pub/OS/Linux
  669.     tsx-11.mit.edu                pub/linux
  670.     tupac-amaru.informatik.rwth-aachen.de    pub/msdos/replace
  671.  
  672. The current version of Linux is 0.98pl6 released on December 2, 1992
  673.  
  674. End of Linux-Activists Digest
  675. ******************************
  676.  
  677.